package com.yhhvip.lottery.domain;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;

@ToString
@Data
public class ReqLotAdvVo {

    @ApiModelProperty(value = "广告ID(添加时不需要该字段)", example = "1", required = true, position = 1)
    private Long id;

    @NotEmpty(message = "图片url不能为空")
    @ApiModelProperty(value = "图片url", example = "www.baidu.com", required = true, position = 2)
    private String imgUrl;

    @NotNull(message = "位置不能为空")
    @ApiModelProperty(value = "位置(1:首页, 2:活动页)", example = "1", required = true, position = 3)
    private Byte position;

    @NotNull(message = "排序不能为空")
    @ApiModelProperty(value = "排序(值越小越往前)", example = "1", required = true, position = 4)
    private Integer sort;

    @NotNull(message = "状态不能为空")
    @ApiModelProperty(value = "状态(0:不可用, 1:可用)", example = "1", required = true, position = 5)
    private Byte status;

    @NotEmpty(message = "跳转路径不能为空")
    @ApiModelProperty(value = "跳转路径", example = "www.baidu.com", required = true, position = 6)
    private String url;
}